package cn.zqh.store.service;

import cn.zqh.bean.api.CommonResult;
import cn.zqh.bean.bo.AdminChangeStore;
import cn.zqh.bean.bo.Pstore;
import cn.zqh.bean.bo.Store;
import cn.zqh.bean.bo.UserChangeStore;
import com.baomidou.mybatisplus.extension.service.IService;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqh
 * @since 2023-01-06
 */
public interface StoreService extends IService<Store> {
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 通过用户id查询店铺
    */
    CommonResult QueryTheStoresUnderTheCompanyThroughTheUserPrimaryKey(String uid);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 添加一个新店铺
    */
    CommonResult addAAewStore(Pstore pstore);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 查询所有店铺
    */
    CommonResult getAllStore();


    /**
      * @Author: zqh
      * @Date:
      * @Description: 通过店铺id获取店铺信息
    */
    CommonResult getStoreInformationByStoreId(String storeId);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 店主修改店铺信息
    */
    CommonResult storeOwnerModifiesStoreInformation(UserChangeStore userChangeStore);
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 管理员修改店铺信息
    */
    CommonResult adminModifiesStoreInformation(AdminChangeStore adminChangeStore);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 删除店铺
    */
    CommonResult delStoreById(String storeId);
}
